<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>当前浏览器的位置操作</title>
    
</head>
<body>
    <script type="text/javascript">
        console.log('Myname')
        // 2秒之后跳转百度搜索
        setTimeout(function(){
            // location.href = "https://www.baidu.com";
            // location.replace('https://www.baidu.com');
            // 重载整个网页
            location.reload();
        }, 2000);
    </script>
</body>
</html>